Get rid of the stupid ATOMIC_WRITE crap I wrote

Just use printf() and fflush() instead of sprintf()ing to a static
buffer and writ()ing it.