A truncate write must be a smbcli_smbwrite, not a