Mágh Cuilinn withstand late Ballygar surge