fix for incorrect NIO SocketChannelUDT::write functionality in blocking mode