The .MD2 format doesn't have bones, which are essential for .B3D animation. (Think of the MD2 format as a lump of clay which the animation commands squish and distort and reform every frame. Meanwhile, the B3D format is like a jointed armature with a skin over it.) I'm afraid you won't be able to convert an .MD2 file to .B3D.