implemented bmap. fixme: diskarray not passed here. Shall we make it global?