If the paths and permissions are correct for the tmp write document, the sql i/o write issue is most likely due to insufficient resources - ram or disc space. Not a UNA, but a hosting issue.
I hope this helps someone later.