I don't think A can sue you. It is employment at will. You surely can resign any time. Based on the reaction of that A professor, I think it is good you don't work for him.