Index: uspace/srv/fs/fat/fat_fat.c
===================================================================
--- uspace/srv/fs/fat/fat_fat.c	(revision 23b56ca567016873e61bb22786d7411d052e9e16)
+++ uspace/srv/fs/fat/fat_fat.c	(revision a429bfb82f5c0b6ebca3b56bcaafc3f798fbe01a)
@@ -286,5 +286,5 @@
 		for (c = 0; c < bps / sizeof(fat_cluster_t); c++, cl++) {
 			fat_cluster_t *clst = (fat_cluster_t *)blk->data + c;
-			if (*clst == FAT_CLST_RES0) {
+			if (uint16_t_le2host(*clst) == FAT_CLST_RES0) {
 				/*
 				 * The cluster is free. Put it into our stack
@@ -292,8 +292,7 @@
 				 */
 				lifo[found] = cl;
-				if (found == 0)
-					*clst = FAT_CLST_LAST1;
-				else
-					*clst = lifo[found - 1];
+				*clst = (found == 0) ?
+				    host2uint16_t_le(FAT_CLST_LAST1) :
+				    host2uint16_t_le(lifo[found - 1]);
 				blk->dirty = true;	/* need to sync block */
 				if (++found == nclsts) {
