There’s two concepts of moral balancing. The philosophers of antiquity would talk about it in the context of finding a good balance between being too radical and being too normal. The psychologists of today talk about it in the context of how we have a tendency to give ourselves permission to be bad, if we feel we have been good.
Although, the former would make a good subject in itself, I’m talking about the latter here.