Fix wrong pos calculation on write-bytes implementation for nio ByteBuffer.
Fix wrong pos calculation on write-bytes implementation for nio ByteBuffer.

mbjarland/octet,funcool/octet,mbjarland/octet,funcool/octet