A note on the invariant distribution of a quasi-birth-and-death process