remove uncessary call to mWriteBuffer.position()

assigne len with mWriteBuffer.position() before testing
Merge pull request #85 from treymarc/patch-1

remove uncessary call to mWriteBuffer.position()