libcli/smb: Fix smb2cli_write_recv() and smb2cli_write() to return the bytes written.