How do you ensure the write operation is complete before the power is turned off?