The OS will normally buffer writes in RAM when an application does a write, then when it has a bunch, do them all at once, so it'll do a big chunk of one, then the other.
Also for some unusual filesystems, like, say it's a log-structured filesystem, the actual data may just be more-or-less written forward for both of them.