fix double definition of writeUInt8

closes #5