if 'next' is null then EOF

Signed-off-by: Alexander Ginzburg <alex@eightbits.com>
only creates meta_root and data_root

Signed-off-by: Alexander Ginzburg <alex@eightbits.com>