smbclient_write: correct error messages, add EACCES

Error messages for smbclient_write were referring to reads for some
reason. Correct this. Also, during testing we encountered EACCES when
trying to write to a file opened for read-only. Handle that error code
properly.