In a ring $(A,+, \cdot)$ if $aba = a$ then $bab = b$ and all non zero elements in $A$ are invertible.

The ring has no nonzero zero divisors: if $ac=0$ for nonzero $a,c$, then you can find a unique $b$ such that $a=aba=a(b+c)a$. But then $b=b+c$ implies $c=0$, a contradiction.

At this point, you can even prove that $A$, as long as it is not equal to zero, has an identity without assuming so in the hypotheses. Given any $a=aca\neq 0$, we see that $ac$ is an idempotent, and verify that $ac(acx-x)=0=(xac-x)ac$ implies $ac$ is an identity element for the ring. We write "$1$" for $ac$ hereafter.

Knowing this, you can conclude that $a(ba-1)=0=(ab-1)a$ implies $ba=ab=1$ when a is nonzero. Clearly then $b$ can only be $a^{-1}$ and it follows that $bab=b$ also holds.


$a(bab)a=(aba)ba=aba=a$. So $bab$ does the thing that $b$ does, but $b$ is the unique element that does that, so $bab=b$.