The layer of the soil (for which you calculated its mass) has area of 1 ha (which is 100 m by 100 m); hence, the only conversion that you need to do is from milligrams to kg.