Analysis of magnetostatic field for some class of inhomogeneous problems by BEM