I think "write TO the president" sounds better.
"write the president" seems to be a grammatical error.
However, there are some potential there.
----- added -----
yeah, when you type in "Write the President" at google,
It gives you results of Write to the president.
over 62 million results there. Pretty good.