Implement java.nio.channels.WritableByteChannel

in addition to misc write() methods for easier usage