I don't know exactly, do I have to use preposition "to" with words "to say", "to tell", "to write"?

So, which sentences are correct: "I am going to write to you something" or "I am going to write...