only speak to sb. and write to sb. is correct or we can also say speak with sb. and write with sb.
You can speak with someone, but you cannot write with someone. If you want to use the preposition with in reference to writing, then you say "correspond with..."