It depends whether you wish to communicate with the person (write to him) or write on his behalf (write for him). Note that the oersonal pronoun 'I' should always be capitalised.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.