The white stuff coming out of the salmon is albumin, a protein that remains liquid in the raw fish, but coagulates when the fish is heated. It's fine to eat it - it's just not aesthetically pleasing. The best way to minimize it is to cook the fish gently and avoid overcooking it.