fix writeblockindex to match devcoin merge mine