I would disagree with that point then. Staying up most of the night and therefore sleep depriving yourself will make you less cognitively able the next morning compared to if you slept 8 hours, but the amount you are able to write in the time you chose to stay up outweighs the slight increase in productivity you would have the next morning from sleeping all night.