Fixed block writing in PICs
Implemented write in blocks