Try using the -a switch which would make it append the specified text to the existing line.

/write -l1 test.txt 1
/write -al1 test.txt and 2