Measurement of the b-hadron production cross section using decays to final states in pp collisions at with the ATLAS detector