smbclient_write: can emit EACCES on error, handle this

Seen in testing. When a file is opened in readonly mode for instance,
writing to it will fail with this error code. Handle this properly.