In certain dungeons (the ones where the entire map is basically a spiral-like tower), when you reach the point where the rocks begin rolling down towards you, simply walk backwards just before that area. The rocks will disappear once they hit the bottom.