Theory of the Bloch-wave oscillations in small Josephson junctions