Page curve for an evaporating black hole