How it works
The object comes first: を (object) marks 手紙 (letter) as the thing being written, and the verb 書く (write) lands at the end — Japanese is verb-final. The casual final よ (you know) adds a little push, like telling someone what you're about to do.