Global flows with invariant measures for the inviscid modified SQG equations