Use fs.writeSync instead of fs.write in util.writeFdP.

The asynchronous version was batching the callbacks so that large numbers
of files were written at once, which created the perception of long pauses
in the build process.

Closes #33.