I don't see why your code shouldn't work. But try using passing a stream instead, might work who knows.
Stream stream = new FileStream(FileName, FileMode.Create, FileAccess.Write, FileShare.None);
Bitmap bm = new Bitmat(pictureBox1.Image);
bm.Save(stream, ImageFormat.Bmp);