Correctly assert the number of bytes written by util.writeFdP.

Closes #19.