"I'll write you" works with "you" as indirect object. Same with "you" in "I'll give you a cookie".

// @kdfrawg