Well, I went agoogling and didn't find a dictionary definition, but I did find this amusing page in which kaflooey (my favored spelling)can be found in a definition.
http://www.newmex.com/ebear/dictionary.html

Several words are offered as the "real" word...flooey, kablooey and kaplooey are all variants.