writeback: turn writeback lists into a flush tree