remove uncessary call to mWriteBuffer.position()

assigne len with mWriteBuffer.position() before testing