Can't someone smart just read the source code and figure out exactly under which conditions files get written to the disk?
Then even completely beyond control of the kernel, devices have their own RAM caches, which means that even if the device reports that something was written, it might not have been. So there's no way to absolutely be sure.