Impact of ion diamagnetic drift on ideal ballooning mode stability in rotating tokamak plasmas