Implement gathering writes in NioSocketChannel

- Add some support methods in ChannelOutputBuffer