This is likely to be a quota problem; check your quota and request an increase if necessary.
It could also be that you are trying to write to an unavailable directory; does the destination directory exist on the node you're running on? Note that /scratch.global directories are the same from all nodes, but /scratch.local directories are local to each node and have different contents.
To create files in a destination directory you must have permission to write to the directory. To edit a file you must have permission to write to the file. To list the contents of a directory including the associated Linux permissions use the command: