This message is displayed when an error is encountered writing data from the disk cache to the hard disk, indicating an issue with the disk named in the message. You should run Apple Disk First Aid or another drive utility application to address this issue.
Since this error does not occur when data is saved but when the disk cache is written to the hard disk, the operating system displays the message and not the application that was used to edit the data.