test canWrite via dummy file creation