fixed bug: writeFileAtPath now notice the file date