lib: write: fix memory leak

Free the "blocks" array got from _hivex_get_children.

Thanks: Mahmoud Al-Qudsi