Solution of the anomaly puzzle in SUSY gauge theories and the Wilson operator expansion