Writer's block is entirely mental. The lack of sleep is probably you having a bad sleep schedule or getting a lack of exercise.