Minor changes for Digest and file writing

- Moved writing of Digest from MapWriter to INIFile (all INI files can
have a digest)
- Cleaned up the writing method of INIFile a bit
- Added a safety check for FileWriter whether it can write or not (logs
when it can't)