Fix DataPacket#encode writeBytes method

This is a PR based on [comment](https://github.com/brunodecarvalho/efflux/issues/5#issue-48323428) on issue #5 which I think is correct.

 * The writesBytes method call should consider underlying channel buffer
   array offset and length.
 * Fixes #5, original code from @RyanHoldren.