One article will explain to you in detail, if you need to write to professor or not. In fact that article in written by an Indian Professor.
Write email to professor?
and its my understanding that - for PhD - yes you can contact the professor, but you need to do the ground work. Selecting school witout talking to professor for PhD is not good thing to do.
for masters, they usually don't respond.