For white person, he may just think he wrote a recommendation letter and blew golden trumpet for you, you should keep your promise to finish your work in his lab. as you said in your petition letter. that's all.
But for Asian boss, you will probably get trouble.
I know some similar case before.Some boss will write a letter to USCIS, especially you are in NIW, and said you left your current research.