fire fileWrite event