Move mdwriteback() to better place
The previous order in the file didn't make sense and matched neither
the header file nor the smgr API.
Discussion: https://www.postgresql.org/message-id/flat/
22fed8ba-01c3-2008-a256-
4ea912d68fab%40enterprisedb.com