Question: Consider a text editor that saves a file whenever you click a save button. Suppose that when you press the button, the editor simply
(1) animates the button "down" event (e.g., by coloring the button grey),
(2) uses the write() system call to write your text to your file, and then
(3) animates the button "up" event (e.g., by coloring the button white).
What bad thing could happen if a user edits a file, saves it, and then turns off her machine by flipping the power switch (rather than shutting the machine down cleanly)?