Add a task to write to disk