Write the dirty block index and block-file entries to the database.
Declared in <node/blockstorage.h>
<node/blockstorage.h>
void WriteBlockIndexDB();