Write for client sockets