I decided to return the samsung SSD, and exchange it for Crucial M4 ...
no luck, exactly the same problem: Disk Utlity > Repair is not able to install. It seems that my macbook5,1 is not able to write/edit the partition map or the startup disk.
I have also tried to insert the SSD into the macbook, using my hdd from the USB connection, and tried timecapsule and a direct installation of Snow Leopard. No luck, it seems to get stuck on the same point of installing/writing/editing the partition table or startup disk.
At this point, I think the problem is in the macbook, maybe it's too old or what. I do not expect a third ssd will work, so I am returning the crucial and forget about it