bulk writes for NioSocketChannel