Yeah you are right.. mostly, our mood affect the way we write.
I have had my mind blank and coincidentally it has been at times when I have been under stress because of some personal problem.
I believe after my exams, I would be able to write better. Since that's the stress or pressure I am quite facing at the moment.