fs_flushFs will write the contents to the FAT table, but you can't do that after the powerup - you need to do that BEFORE the power down. (I am assuming you are trying to preserve whatever files you had opened you were writing to the moment that you lost data).