For now, I failed to push my  changes to github. 

If anybody is interested in the files, they are available in http://pkeus.de/~wb/mventi

Copy the files int $PLAN9/src/cmd/venti/srv
and try "mk o.buildtrie" .

I also inserted my code into index.c to check that index lookup gives the same result as before.
The code snippet inserted into loadientry function is

               tf = trie_retrieve(score,&ie2);
                assert(tf != ~0 );
                assert(ie2.addr==ie->ia.addr);
                assert(ie2.type==ie->ia.type);
                assert(ie2.size==ie->ia.size);
                assert(ie2.blocks==ie->ia.blocks);