If you really think that's the only reason for inflation you neither know economy nor the capabilities of politicians.
Barter economies have also never existed in human societies. They have either been gift economies (esp. with smaller tribes) or credit economies (records dating back to the earliest tables from Mesopotamia and Ancient Egypt). See:
* https://en.wikipedia.org/wiki/Debt:_The_First_5000_Years
For a more recent example of a society becoming pure credit, see:
* https://en.wikipedia.org/wiki/Irish_bank_strikes_(1966–1976)