I cannot say if that could have caused your ingrown hairs, but I suspect that what you used might be the culprit.

You most likely used a styptic pencil and that is not the same thing as an alum...