Avalanches mediate crystallization in a hard-sphere glass