Databases write changes to a write-ahead log (WAL) before updating data pages. What does this buy?
Not quite.
A commit only needs the log record flushed — one sequential append, the fastest kind of disk I/O — after which a crash can always be recovered by replaying the WAL. The expensive scattered writes to data pages happen asynchronously afterwards. WAL is why transactions are durable AND fast, and it doubles as the change stream that replication and point-in-time recovery are built on (Postgres streaming replication ships WAL records).