Fix spurious file write dialog

This pull request adds a read and compare when a blind-write detection has occurred to prevent 
* Fixes #6437